package cn.tedu.spring.eg11;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestTeacher {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.eg11");
        Teacher teacher = context.getBean(Teacher.class);
        System.out.println(teacher);
    }
}
